<template>
  <div class="block">
    <!-- <span class="demonstration">Click 指示器触发</span> -->
    <el-carousel trigger="click" height="180px">
      <el-carousel-item v-for="item in pic" :key="item.id">
        <h3 class="small">
            <img :src="item.src">
        </h3>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  data () {
    return {
      pic: [
        {
          id: 1,
          src: require('@/assets/images/Main/SlideShow/s1.jpg')
        },
        {
          id: 2,
          src: require('@/assets/images/Main/SlideShow/s2.jpg')
        },
        {
          id: 3,
          src: require('@/assets/images/Main/SlideShow/s3.jpg')
        },
        {
          id: 4,
          src: require('@/assets/images/Main/SlideShow/s4.jpg')
        }
      ]
    }
  }
}
</script>

<style lang='scss'>
  .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
  }
  .el-carousel__item:nth-child(2n) {
     background-color: #99a9bf;
  }
  .el-carousel__item:nth-child(2n+1) {
     background-color: #d3dce6;
  }
  .block{
    height: 00px;
    width: 100%;
    padding-top: 50px;
    img{
        width: 100%;
        height: 100%;
    }
  }
</style>
